"""
set 的crud

    增: add()
    删： remove()  clear()  pop()
    查 : in      not in
"""
set1 = set()

# 增加
set1.add('a')
set1.add('b')
set1.add('c')
set1.add('d')
set1.add('e')
set1.add('刘千琪')

# 删
# set1.remove('a')



# 删除
# set1.remove('b')
# set1.clear()


# print(set1)
# print(set1.pop()) # 获取元素，无序


# 查 in   not in
if '刘千琪' in set1:
    print('set1包含刘千琪')

if '刘千琪' not in set1:
    print('set1不包含刘千琪')

# 遍历
for item in set1:
    print(item)